package com.ruoyi.Outsider.controller;

import com.ruoyi.Outsider.domain.Outsider;
import com.ruoyi.Outsider.service.IOutsiderService;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
/**
 * @author zhangbaiyan
 * @date 2024-07-11 17:23
 * @description:没注册使用
 * @version: 1.0
 */

@Anonymous
@RestController
@RequestMapping("/Transit/Transit")
public class TransitController {
    @Autowired
    private IOutsiderService outsiderService;




    @PostMapping("/add")
    public void add(@RequestBody Outsider outsider)
    {
        outsiderService.insertOutsider(outsider);
    }


}
